import { createApp } from 'vue';
import App from './App.vue';
import Header from './components/Header.vue';
import AiChatbot from './components/AiChatBot.vue';
import router from './utils/router.js'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { library } from '@fortawesome/fontawesome-svg-core'
import { fas } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'

library.add(fas)

const app = createApp(App)
app.use(ElementPlus)
app.component('font-awesome-icon', FontAwesomeIcon)
app.component('Header', Header); // 全局注册 Header 组件
app.component('AiChatbot', AiChatbot);
app.use(router)
app.mount('#app')
